package com.apexedu.theme.entity;

import javax.persistence.*;

/**
 * Created by 建 on 2015/4/7.
 */
@Entity
@Table(name = "T_XXFB_SITE_ZT")
public class TXxfbSiteZt {
    private String wid;//主键
    private String siteid;//状态
    private String ztwid;//主题编号
    private String sfzdy;//是否自定义
    private String zdynr;//自定义内容
    private String state;//状态

    @Id
    @Column(name = "WID", nullable = false, insertable = true, updatable = true, length = 50)
    public String getWid() {
        return wid;
    }

    public void setWid(String wid) {
        this.wid = wid;
    }

    @Basic
    @Column(name = "SITEID", nullable = true, insertable = true, updatable = true, length = 50)
    public String getSiteid() {
        return siteid;
    }

    public void setSiteid(String siteid) {
        this.siteid = siteid;
    }

    @Basic
    @Column(name = "ZTWID", nullable = true, insertable = true, updatable = true, length = 50)
    public String getZtwid() {
        return ztwid;
    }

    public void setZtwid(String ztwid) {
        this.ztwid = ztwid;
    }

    @Basic
    @Column(name = "SFZDY", nullable = true, insertable = true, updatable = true, length = 10)
    public String getSfzdy() {
        return sfzdy;
    }

    public void setSfzdy(String sfzdy) {
        this.sfzdy = sfzdy;
    }

    @Basic
    @Column(name = "ZDYNR", nullable = true, insertable = true, updatable = true, length = 500)
    public String getZdynr() {
        return zdynr;
    }

    public void setZdynr(String zdynr) {
        this.zdynr = zdynr;
    }

    @Basic
    @Column(name = "STATE", nullable = true, insertable = true, updatable = true, length = 10)
    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        TXxfbSiteZt that = (TXxfbSiteZt) o;

        if (wid != null ? !wid.equals(that.wid) : that.wid != null) return false;
        if (siteid != null ? !siteid.equals(that.siteid) : that.siteid != null) return false;
        if (ztwid != null ? !ztwid.equals(that.ztwid) : that.ztwid != null) return false;
        if (sfzdy != null ? !sfzdy.equals(that.sfzdy) : that.sfzdy != null) return false;
        if (zdynr != null ? !zdynr.equals(that.zdynr) : that.zdynr != null) return false;
        if (state != null ? !state.equals(that.state) : that.state != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = wid != null ? wid.hashCode() : 0;
        result = 31 * result + (siteid != null ? siteid.hashCode() : 0);
        result = 31 * result + (ztwid != null ? ztwid.hashCode() : 0);
        result = 31 * result + (sfzdy != null ? sfzdy.hashCode() : 0);
        result = 31 * result + (zdynr != null ? zdynr.hashCode() : 0);
        result = 31 * result + (state != null ? state.hashCode() : 0);
        return result;
    }
}
